﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once        
#include "GmFamilyService.h"

namespace gfam
{
    ///\brief 约束类型
    enum class FamilyConstraintType : int32_t
    {
        Unknown = 0,          ///<未知
        Distance = 1,         ///<距离
        Angle = 2,            ///<角度
        Radius = 3,           ///<半径
        Diameter = 4,         ///<直径
        Parallel = 5,         ///<平行
        Tangent = 6,          ///<相切
        Symmetric = 7,        ///<对称
        Perpendicular = 8,    ///<垂直

        Horizontal = 10,      ///<水平
        Vertical,             ///<竖直
        Coincident,           ///<共点
        PointOnCurve,         ///<点在线上
        PointOnPlane,         ///<点在面上

        Pinned = 18,          ///<固定约束
        AlignGeometry = 20,   ///<对齐几何约束
        DistanceRatio = 21,   ///<距离成比例约束

        EllipseRadius =30,    ///<椭圆半径约束
    };
}